#include "AutoLock.h"

#include "Lockable.h"

/*
	AutoLock
*/

/*	public	*/

AutoLock::AutoLock(const Lockable* object)
	: object(object) {
	object->lock();
}

AutoLock::~AutoLock() {
	object->unlock();
}


